package com.wish.wishsystem_management.mapper;

import com.wish.wishsystem_management.entity.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户与角色对应关系 Mapper 接口
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    List<Long> queryRoleIdList(Long userId);

    void delete2(@Param("userId") Long userId);

    void add2(@Param("userId") Long userId, @Param("rr") Long rr);

    void delete(Long userId);

    void save(Map<String, Object> map);

    void deleteBatch(Long[] userIds);
}
